<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
<head>
	<title>CMS</title>
	<!-- base href="./" / -->
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="keywords" content="Pennyrouter">
	<meta name="description" content="Pennyrouter">
	<meta name="author" content="pennysoft.net" />
	<link href="utils/img/icon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="utils/img/icon.ico" rel="bookmark" />
	<link href="utils/css/all.css" media="all" rel="stylesheet" type="text/css" />
	
	<script type="text/javascript" src="utils/lib/json.js"></script>
	<script type="text/javascript" src="utils/lib/net.js"></script>
	<script type="text/javascript" src="utils/lib/listeners.js"></script>
	<script type="text/javascript" src="utils/lib/pennyutils.js"></script>
	<script type="text/javascript" src="utils/lib/utils.js"></script>
	<script type="text/javascript">
		var path = window.location.pathname;
		if(path[path.length - 1] != '/'){
			path = path.substring(0,path.lastIndexOf('/')+1)
		}
		new net.ContentLoader("dao/check_login.php", function(args){
			if(JSON.parse(this.request.responseText).isLogin) window.location.href="./"
		});
	</script>
	<script type="text/javascript" src="utils/lib/pennyfield.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/text.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/hidden.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/hidden_text.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/module_tree.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/module_trees.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/radio.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/audio.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/image.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/url.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/photo.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/select.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/selects.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/checkbox.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/suggest.js"></script>
	<script type="text/javascript" src="utils/lib/pennyfield/password.js"></script>
	
	<script type="text/javascript" src="utils/lib/list_data.js"></script>
<style>
body{
/*background:url(../img/bg.jpg) center;*/
background:#fff;
color:#000;
font-size:10pt;
font-family:Microsoft YaHei,MS SONG,SimSun,tahoma,sans-serif;
/*width:1280px;*/
/*min-width:1280px;*/
text-align:-moz-center!important;
text-align:center;
margin:0 auto;
line-height: 150%;
}

#main{text-align:center;margin:0 auto;}
#left{}
#right{background: #f0f0f0;}

.menu{width: 80px; height: 30px; line-height: 30px; background: #666; color: #fff; margin: 5px 0; border: 1px solid #eee; border-left: 3px solid #6c0; cursor: pointer; font-weight: bold; text-align: left; padding: 0 0 0 10px;}

button{
font-family:Microsoft YaHei,MS SONG,SimSun,tahoma,sans-serif;
-webkit-border-radius: 5px;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #6c0), color-stop(0.7, #3b0));
text-shadow: 0px 0px 10px #393;
min-width: 120px;
height: 36px;
line-height: 100%;
border: 2px solid #fff;
cursor: pointer;
font-weight: bold;
font-size: 10pt;
color: #fff;
padding: 5px 10px;
margin: 5px;
}

.label{
padding: 0px 5px;
}

.input_border{
margin: 0px 5px;
padding: 0px 5px;
border-radius: 5px;

border:1px solid #aaa;

-moz-box-shadow:0px 0px 4px #ccc;
-ms-box-shadow:0px 0px 4px #ccc;
-wekit-box-shadow:0px 0px 4px #ccc;
-o-box-shadow:0px 0px 4px #ccc;
box-shadow:0px 0px 4px #ccc;
}
.input{
border:0px;
height: 28px;
line-height: 28px;
font-family:Microsoft YaHei,MS SONG,SimSun,tahoma,sans-serif;
font-size: 12pt;
}

.remind{
padding-left:15px;
text-align:left;
color:#f00;
}

.rm{padding: 0px 5px;}

.tables{border-top:1px solid #999;border-bottom:1px solid #999;}
.column{width:80px;padding:5px; margin:1px;font-size:8pt;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid #ccc;}
.column_text{width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.column_move{width:5px;height:20px;border:1px solid #eee;text-align:center;cursor:move;}
.table_header{height:35px;border:1px solid #ccc;}
.table_row{height:35px;border-left:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;}

.menu_top{width: 150px; height: 30px; line-height: 30px; padding: 0 5px; margin: 0 5px; border: 1px solid #eee; border-bottom: 3px solid #6c0; cursor: pointer;}

.w1{width: 60px}
.w2{width: 80px}
.w3{width: 100px}

.row_button{width: 40px; cursor: pointer; -webkit-border-radius: 3px;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #6c0), color-stop(0.7, #3b0));
color: #fff;
padding: 0 10px;
margin: 5px;
}

.icon_sub,
.icon_image,
.icon_down,
.icon_upload,
.icon_play,
.icon_date,
.icon_time,
.icon_delete,
.icon_modify,
.icon_selected_false,
.icon_selected_true{width:22px;height:22px;cursor:pointer}

.icon_sub{background:url(utils/img/icon_sub.png) center no-repeat;}
.icon_image{background:url(utils/img/icon_image.png) center no-repeat;}
.icon_down{background:url(utils/img/icon_down.png) center no-repeat;}
.icon_upload{background:url(utils/img/icon_upload.png) center no-repeat;}
.icon_play{background:url(utils/img/icon_play.png) center no-repeat;}
.icon_date{background:url(utils/img/icon_date.png) center no-repeat;}
.icon_time{background:url(utils/img/icon_time.png) center no-repeat;}
.icon_delete{background:url(utils/img/icon_delete.png) center no-repeat;}
.icon_modify{background:url(utils/img/icon_modify.png) center no-repeat;}
.icon_selected_false{background:url(utils/img/icon_selected_false.png) center no-repeat;}
.icon_selected_true{background:url(utils/img/icon_selected_true.png) center no-repeat;}

.input_icon{height: 28px;line-height: 28px;}

.first_page_button,
.prev_page_button,
.next_page_button,
.last_page_button,
.page_this_button,
.page_button{padding:5px 10px;margin:5px;cursor:pointer;border:1px solid #aaa;color:#666}
.page_button{text-decoration:underline;border:1px solid #ccc;color:#aaa;}

.radio,
.radioed{
height:28px;line-height:28px;margin:0px 10px; 0px 5px;padding:0px 5px 0px 20px;cursor:pointer;
}
.radio{background:url(utils/img/icon_radio_false.png) center left no-repeat;}
.radioed{background:url(utils/img/icon_radio_true.png) center left no-repeat;}
.checkbox,
.checkboxed{
height: 28px;line-height:28px;margin:0px 10px; 0px 5px;padding:0px 5px 0px 20px;cursor:pointer;
}
.checkbox{background:url(utils/img/icon_selected_false.png) center left no-repeat;}
.checkboxed{background:url(utils/img/icon_selected_true.png) center left no-repeat;}

.select_items{background:#f6f6f6;width:100%;}
.select_item{width:100%;overflow:hidden;}
.select_item_text{height:20px;padding:10px;text-align:left;}

.selects_items{background:#f6f6f6;width:100%;}
.selects_item{width:100%;overflow:hidden;}
.selects_item_text{padding:5px;}

.suggest_list{background:#fff;padding:5px;margin:5px;border:1px solid #ccc;}
.suggest_item{background:#fff;padding:5px;margin:5px;text-align:left;}


.module_trees_selector{background:#fcfcfc;width:100%;}

.module_tree_selector{background:#fcfcfc;width:100%;}

.form_win{
position:absolute;
border:5px solid #bbb;
background:#fff;
left:0;
top:0;
z-index:9000;
margin:0;
padding:1px;
display:none;
}

.form_win_title{
width:100%;
text-align:right;
cursor:move;
background: #f0f0f0;
}


.icon_button{
font-size:2pt;
height:20px;
width:20px;
cursor:pointer
}

.up_icon{background:url(utils/img/cms_icon_up.gif) no-repeat center;}
.down_icon{background:url(utils/img/cms_icon_down.gif) no-repeat center;}

.hide_icon{background:url(utils/img/cms_icon_hide.gif) no-repeat center;}
.zoom_icon{background:url(utils/img/cms_icon_zoom.gif) no-repeat center;}
.close_icon{background:url(utils/img/cms_icon_close.gif) no-repeat center;}


.image_items{width:300px;border:1px solid #999;background:#fff;}
.image_items .image_item_div{border:1px solid #ccc;background:#eee;padding:5px;margin:5px;}
.image_items .image_item_img{width:40px;height:40px;padding:3px;}

.image_item{width:70px;border:1px solid #999;background:#fff;}
.image_item .image_item_div{border:1px solid #ccc;background:#eee;padding:5px;margin:5px;}
.image_item .image_item_img{width:40px;height:40px;padding:3px;}


.photo_items{width:300px;border:1px solid #999;background:#fff;}
.photo_items_div{border:1px solid #ccc;background:#eee;padding:5px;margin:5px;}
.photo_items_img{width:40px;height:40px;padding:3px;}
.photo_items_append{width:40px;height:40px;background:#fff;line-height:40px;}

</style>

</head>
<body>

<div class="tc" style="width:200px;">
<div id="login_form_div">
	<div class="tl p10 c6">用户名</div>
	<input id="login._admin_user_name" class="input_border input" name="_admin_user_name" type="text" />
	<div class="tl p10 c6">密码</div>
	<input id="login._password" class="input_border input" name="_password" type="password" />
</div>
<div><button class="button" onclick="login()">登陆</button></div>
</div>

</body>
</html>

<script type="text/javascript">

<!--//--><![CDATA[//><!--
function login () {
	new net.ContentLoader("dao/login.php", function(){
		var res = JSON.parse(this.request.responseText);
		if(res.process_status){
			window.location.href="./";
		} else {
			alert(res.message)
		}
	},

	"_admin_user_name="+encodeURI($("login._admin_user_name").value)
	+
	"&_password="+encodeURI($("login._password").value)
	, 
	true
	);
}
//--><!]]>
</script>